import request from '@/utils/request2'

export function page(data) {
  return request({
    url: '/integrated/page',
    method: 'get',
    params: data
  })
}

export function removes(data) {
  return request({
    url: `/integrated/dels`,
    method: 'get',
    params: data
  })
}

export function getInfo(data) {
  return request({
    url: `/integrated/one/${data}`,
    method: 'get'
  })
}

export function addOrUpdate(data) {
  return request({
    url: '/integrated',
    method: 'post',
    data
  })
}

export function integratePool(data) {
  return request({
    url: '/ds-dbpool/getTableByPoolId',
    method: 'get',
    params: data
  })
}

export function run(planId) {
  return request({
    url: `/integrated/run/${planId}`,
    method: 'get'
  })
}
